
import { ModalForm, ProFormDigit, ProFormRadio, ProFormText } from '@ant-design/pro-components';
import { Form } from 'antd';

export default function StartRecordDialog({children, onFinish}) {
  const [form] = Form.useForm();
  return (
    <ModalForm
      title="开始录制"
      trigger={children}
      form={form}
      autoFocusFirstInput
      modalProps={{
        destroyOnClose: true,
      }}
      submitTimeout={2000}
      onFinish={values => {
        onFinish(values)
        return true
      }}
    >
      <ProFormText
        name="save_filename"
        label="保存文件名"
        initialValue={"adbss"}
      />  
    </ModalForm>
  )
}